package edu.ycu.aladdin.collector;

import com.alibaba.dubbo.spring.boot.annotation.EnableDubboConfiguration;
import edu.ycu.aladdin.collector.weibo.WeiBoConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Profile;

/**
 * @author <a href="mailto:wangruihuano@gmail.com">王瑞环</a>
 * @since 1.0
 */
@Slf4j
@SpringBootApplication
@Profile("!junit")
@EnableDubboConfiguration
public class BootStrap implements CommandLineRunner {

    public static void main(String[] args) {
        SpringApplication.run(BootStrap.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        log.info("spring.profiles.active:{}",System.getProperty("spring.profiles.active"));
    }
}
